/*
 * @Author: ecitlm
 * @Date:   2017-12-01 21:30:50
 * @Last Modified by: ecitlm
 * @Last Modified time: 2018-04-14 23:31:00
 */
const express = require('express')
const app = express()
const Server = require('../../../utils/httpServer')

app.get('/', function (req, res) {
    let page = req.params.page;

    let host = 'https://www.apiopen.top/satinApi?type=1&page=1'
    let path = ``
    let data = {}
    // false:http请求  true:https请求
    request(
        {
            url: url,
            encoding: null
        },
        function (error, response, body) {
            console.log(response);
            console.log('----');
            console.log(body);
        })
})

module.exports = app
